package com.example.musicmodule.util;

/**
 * Created by 王虎 on 2016/12/15.
 */

public class MusicUrlUtil {
    public static final String toot_Url="http://tingapi.ting.baidu.com/v1/restserver/ting";

    public static String getLoverMusic(){return toot_Url+"?method=baidu.ting.billboard.billList&type=23&size=10&offset=0";}


    public static String getMusicUrl(int i){return toot_Url+"?method=baidu.ting.song.play&songid="+i;}


    //参数：	type =
    // 1-新歌榜,
    // 2-热歌榜,
    // 11-摇滚榜,
    // 12-爵士,
    // 16-流行,
    // 21-欧美金曲榜,
    // 22-经典老歌榜,
    // 23-情歌对唱榜,
    // 24-影视金曲榜,
    // 25-网络歌曲榜
    public static String getMusicListByType(int i){return toot_Url+"?method=baidu.ting.billboard.billList&type="+i+"&size=10&offset=0";}

    public static String getLrcBySongId(int i){return toot_Url+"?method=baidu.ting.song.lry&songid="+i;}

}
